/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package test;

import java.security.NoSuchAlgorithmException;
import javax.crypto.KeyGenerator;

/**
 *
 * @author Le Thai
 */
public class testAes {
    public static void main(String[] args) {
        try {
            KeyGenerator key=KeyGenerator.getInstance("AES");
            key.init(128);
            System.out.println(key.generateKey());
        } catch (NoSuchAlgorithmException ex) {
            System.out.println("Can't get key");
        }
    }
}
